package com.grey_zoo.lottery.eventhandler;

import ZhongXinFenPai.TIntent;

import com.grey_zoo.lottery.event.BombEvent;
import com.grey_zoo.lottery.presenter.BombEventManager.MyLotteryCheck;

public class BombEventHandler {

	public static void BombBuyEventHandler(int flag, int buymoney) {

		BombEvent bomb = new BombEvent();
		bomb.flag = flag;
		bomb.buymoney = buymoney;
		TIntent.getInstance().dispatch(bomb, null);

	}

	public static void BombInitEventHandler(int flag) {
		BombEvent bomb = new BombEvent();
		bomb.flag = flag;
		TIntent.getInstance().dispatch(bomb, null);

	}

	public static void BombChongZhiEventHandler(int flag, int chongzhimoney) {

		BombEvent bomb = new BombEvent();
		bomb.flag = flag;
		bomb.chongzhimoney = chongzhimoney;
		TIntent.getInstance().dispatch(bomb, null);

	}

	public static void BombCheckMoneyEventHandler(int flag) {

		BombEvent bomb = new BombEvent();
		bomb.flag = flag;

		TIntent.getInstance().dispatch(bomb, null);
	}

	public static void BombSetLotteryDataEventHandler(int flag) {

		BombEvent bomb = new BombEvent();
		bomb.flag = flag;

		TIntent.getInstance().dispatch(bomb, null);

	}

	public static void BombGetMyLotteryEventHandler(int flag,
			MyLotteryCheck lotterycheck) {

		BombEvent bomb = new BombEvent();
		bomb.flag = flag;
		bomb.lotterycheck = lotterycheck;

		TIntent.getInstance().dispatch(bomb, null);
	}

	public static void BombGetDetailLotteryEventHandler(int flag,
			MyLotteryCheck lotterycheck, String qs, String time) {

		BombEvent bomb = new BombEvent();
		bomb.flag = flag;
		bomb.lotterycheck = lotterycheck;
		bomb.qs = qs;
		bomb.time = time;

		TIntent.getInstance().dispatch(bomb, null);
	}

}
